#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#

import configparser

conf = configparser.ConfigParser()

conf["default"] = {
    "user": "xiong",
    "pwd": 123
}
conf["test.org"] = {}
conf["test.org"]["xiong"] = "haha"

conf["xiong"] = {}
test = conf['xiong']
test["address"] = "127.0.0.1"
test["hostname"] = "xiong"

conf.write(open("xx.ini", "w"))













